package com.we823.project.repository.service.repo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.we823.project.model.repo.StockOutTaskModel;
import com.we823.project.repository.dao.repo.StockOutTaskRepository;
import com.we823.project.repository.service.AbstractBaseService;

@Service("stockOutTaskService")
public class StockOutTaskService extends AbstractBaseService<StockOutTaskModel> {

	private StockOutTaskRepository stockOutTaskRepository;
	
	@Autowired
	public StockOutTaskService(StockOutTaskRepository stockOutTaskRepository) {
		super(stockOutTaskRepository);
		this.stockOutTaskRepository = stockOutTaskRepository;
	}

	public List<StockOutTaskModel> findByTaskId(Integer taskId) {
		return stockOutTaskRepository.findByTaskId(taskId);
	}

	public List<StockOutTaskModel> findByStockOutId(Integer stockOutId) {
		return stockOutTaskRepository.findByStockOutId(stockOutId);
	}

}
